package com.gjh.study.basic.troubleshoot;

/**
 * @author guangjh
 * @version 1.0
 * @date 2020/7/13 8:56
 */
public class JStackDemo {
    public static void main(String[] args) {
        Thread t1 = new Thread(new DeadLockTest(true));
        Thread t2 = new Thread(new DeadLockTest(false));
        t1.setName("thread-dufy-1");
        t2.setName("thread.dufy-2");
        t1.start();
        t2.start();
    }
}
